namespace 证件信息管理.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Licence")]
    public partial class Licence
    {
        [Display(Name="序号")]
        public int ID { get; set; }

        [Required]
        [StringLength(50)]
        [Display(Name = "证件名称")]
        public string Name { get; set; }

        [Display(Name = "前发日期")]
        [DataType(DataType.Date)]
        public DateTime IssueDate { get; set; }

        [Display(Name = "有效期")]
        [DataType(DataType.Date)]
        public DateTime? VaildData { get; set; }

        [Display(Name = "是否年审")]
        public bool? IsReview { get; set; }

        [Display(Name = "下次年审时间")]
        [DataType(DataType.Date)]
        public DateTime? ReviewDate { get; set; }

        [Required]
        [StringLength(20)]
        [Display(Name = "状态")]
        public string State { get; set; }

        [Display(Name = "借出人")]
        public int? LendUserID { get; set; }

        public virtual UserInfo UserInfo { get; set; }
    }
}
